import { find } from 'lodash';
import { getRequest, postRequest, getDownload } from '/@/lib/axios';

// 定义 param 的类型
interface RequestParams {
    [key: string]: any;
}
interface HMIParams {
    [key: string]: any;
}
export const thicknessAndLayOutJudgeApi = {
    // 酸轧厚度判别
    findByPage: (param: HMIParams) => {
        return postRequest('/eapi/tbTcmThkJudge/findByPage', param);
    },

    findDataNoPage: (param: HMIParams) => {
        return postRequest('/eapi/tbTcmThkJudge/findNoPage', param);
    },

    findPltcmByPage:(param: HMIParams) => {
        return postRequest('/eapi/plate/getPlateCutData', param);
    },

    // 酸轧厚度异常明细
    findThkJudge: ( param:any ) => {
        return postRequest('/eapi/plateThickAbnormal/getTdefectDataPage', param);
    },

    findOrderThkAlertBaseInfo: ( param:any ) => {
        return postRequest('/eapi/tbOrderThkAlert/findByCondition', param);
    },

    findOrderThkAlertData: ( param:any ) => {
        return postRequest('/eapi/tbOrderThkAlert/findDataByCondition', param);
    },

    findCal1630OrderThkAlertData: ( param:any ) => {
        return postRequest('/eapi/tbOrderThkAlert/findCal1630DataByCondition', param);
    },

    findCGLOrderThkAlertData: ( param:any ) => {
        return postRequest('/eapi/tbOrderThkAlert/findCGLDataByCondition', param);
    },


}
